package org.sunsys.solr.solrj.example;

import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.impl.HttpSolrServer;
import org.apache.solr.client.solrj.impl.XMLResponseParser;
import org.apache.solr.client.solrj.response.SolrPingResponse;

public class SolrClient {

	public SolrClient() {
	}
	
	public static void main(String []args) throws Exception {
		String urlString = "http://localhost:8983/solr/movie_lines/";
		
		HttpSolrServer solr = new HttpSolrServer(urlString );
		solr.setParser(new XMLResponseParser());
		 
		
		SolrPingResponse pingResponse = solr.ping();
		
		System.out.println("ping response:"+pingResponse);
		
		System.out.println("Thank you");
	}
}
